package com.glamour.hlcity.component.framework.obse;

import java.util.HashSet;
import java.util.Set;

import com.glamour.hlcity.component.framework.common.NotifyEnum;
import com.glamour.hlcity.component.framework.common.NotifyObject;
/**
 * 短信提醒
 * @author zhaoxing.liuzx
 *
 */
public class SMSObserver extends AbstractObserver {
	public static final Set<String> NOTIFY_ENUM_COLLECTION=new HashSet<String>();
	static{
		NOTIFY_ENUM_COLLECTION.add(NotifyEnum.NOTIFY_SUCCESS_APPLY.getCode());
	}
	
	@Override
	public Set<String> listenCollection() {
		return NOTIFY_ENUM_COLLECTION;
	}
	
	/**
	 * 成功申请发送消息
	 * @param notifyObj
	 */
	public void succesApply(NotifyObject notifyObj){
		System.out.println(",sMSObserver.succesApply("+notifyObj.toString()+")");
		throw new RuntimeException();
	}

}
